# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=apk-autoupdate
pkgver=0_git20180503
pkgrel=1
_gitrev=881b6ba1f562f4bc07132f75adddd81439b5e312
pkgdesc="Alpine's tool for automatic updates"
url="https://github.com/jirutka/apk-autoupdate/"
arch="all"
license="MIT"
depends="apk-tools"
makedepends="asciidoctor"
subpackages="$pkgname-doc"
source="$pkgname-$_gitrev.tar.gz::https://github.com/jirutka/$pkgname/archive/$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"

build() {
	cd "$builddir"
	make build prefix=/usr
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir" prefix=/usr
}

sha512sums="b1978d2a53311d4952901bb498526134f6238516b3651db162b1f172fac7cffa31957cb5f003fc32fa10589a08b1118d8ae1bd28c71aaff17bd64625ae3c4d00  apk-autoupdate-881b6ba1f562f4bc07132f75adddd81439b5e312.tar.gz"
